<h1><?php echo $categoria->getNombre() ?> video</h1>
    <hr/>
        <?php if($categoria->countVideos() > 0): ?>
            <?php foreach ($pager->getResults() as $video): ?>
            <h1><a href=<?php echo $video->getNombre() ?></a></h1>
            <div class="descr">by <?php echo $video->getAuthor() ?> on <?php echo $video->getCategoria() ?></div>
            <p><a href="<?php echo url_for('video/show?id='.$video->getId()) ?>"></a></p>
            <?php endforeach; ?>
            <?php if    ($pager->haveToPaginate()): ?>
               <div class="pagination">
                <a href="<?php echo url_for('categoria', $categoria) ?>?page=1">
                    <img src="/images/first.png" alt="First page" />
                </a>
                <a href="<?php echo url_for('categoria', $categoria) ?>?page=<?php echo $pager->getPreviousPage() ?>">
                    <img src="/images/previous.png" alt="Previous page" title="Previous page" />
                </a>
                <?php foreach ($pager->getLinks() as $page): ?>
                    <?php if ($page == $pager->getPage()): ?>
                        <?php echo $page ?>
                    <?php else: ?>
                        <a href="<?php echo url_for('categoria', $categoria) ?>?page=<?php echo $page ?>"><?php echo $page ?></a>
                    <?php endif; ?>
                <?php endforeach; ?>
                <a href="<?php echo url_for('categoria', $categoria) ?>?page=<?php echo $pager->getNextPage() ?>">
                    <img src="/images/next.png" alt="Next page" title="Next page" />
                </a>
                <a href="<?php echo url_for('categoria', $categoria) ?>?page=<?php echo $pager->getLastPage() ?>">
                    <img src="/images/last.png" alt="Last page" title="Last page" />
                </a>
                </div>
            <?php endif; ?>
            <div class="pagination_desc">
                <strong><?php echo $pager->getNbResults() ?></strong> video in this categoria
                <?php if ($pager->haveToPaginate()): ?>
                    - page <strong><?php echo $pager->getPage() ?>/<?php echo $pager->getLastPage() ?></strong>
                <?php endif; ?>
            </div>
        <?php else: ?>
            <br/>
            <p>There are <strong>no</strong> video in this categoria.</p>
        <?php endif; ?>